package com.fatcat.easybuy.service;


import com.fatcat.easybuy.pojo.EasyBuyShoppingCart;

import java.util.List;

/**
 * @author 郝秦毅
 * @since 2025/9/19 15:50
 */
public interface EasyBuyShoppingCartService {

    //查询购物车列表
    List<EasyBuyShoppingCart> getShoppingCartList(Long userId);
    //添加购物车商品
    boolean addProductToCart(Long userId, EasyBuyShoppingCart easyBuyShoppingCart);
    //删除购物车商品
    boolean deleteProductFromCart(Long userId, Long productId);
    //修改购物车商品
    boolean updateProductInCart(Long userId, EasyBuyShoppingCart easyBuyShoppingCart);
    //清空购物车
    boolean clearShoppingCart(Long userId);
}
